//
//  Common.swift
//  weibo
//
//  Created by lixin on 16/4/16.
//  Copyright © 2016年 lixin. All rights reserved.
//

import UIKit

//登录信息
let weiboName = "18234030512"

//微博需要的信息
let APPKEY = "3319125704"

let APPSECRET = "774740b39406af3dbd4f0b1ccda2bc8a"

let REDIRECT_URI = "http://www.weibo.com/"

// 屏幕的宽高
let SCREENW = UIScreen.mainScreen().bounds.width

let SCREENH = UIScreen.mainScreen().bounds.height

//主题颜色
let ThemeColor = UIColor.orangeColor()

//RGB颜色
func RGB(red red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{

    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1)
}

//随机颜色
func randomColor() -> UIColor{

    let red = CGFloat(random()%256)
    
    let green = CGFloat(random()%256)
    
    let blue = CGFloat(random()%256)
    
    return RGB(red: red, green: green, blue: blue)
}